package com.feng.fengmall.cart.service;

import com.feng.fengmall.cart.vo.Cart;
import com.feng.fengmall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItem addToCart(Long skuId, Integer num,Long userId) throws ExecutionException, InterruptedException;

    CartItem addCartSuccess(Long skuId, Long userId);

    Cart getCart(Long userId);

    void checkItem(Long userId, Long skuId, int check);

    void countItem(Long userId, Long skuId, Integer num);

    void deleteItem(Long userId, Long skuId);

    List<CartItem> getUserCartItems(Long userId);

    List<CartItem> getUserCartItems2( );

    void deleteOrderCartItem(List<Long> skuId);
}
